package com.ojoin.trade.supplyloan_core.web.service.impl;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.supplyloan_core.web.service.TbSlLoanCaculateFeeService;
import com.ojoin.trade.supplyloan_core.web.service.TbSlLoanCreditService;
import com.ojoin.trade.supplyloan_core.web.service.TbSlLoanInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-11-3
 * Time: 下午3:13
 * To change this template use File | Settings | File Templates.
 */
@Service
public class TbSlLoanCaculateFeeServiceImpl implements TbSlLoanCaculateFeeService {

    @Autowired
    TbSlLoanCreditService tbSlLoanCreditService;

    @Autowired
    TbSlLoanInfoService  tbSlLoanInfoService;
    @Override
    public void updateCaculateFee() throws BusinessException {
        tbSlLoanCreditService.lockTable();
        tbSlLoanCreditService.updateCaculateCreditFee();
        tbSlLoanInfoService.lockTable();
        tbSlLoanInfoService.updateCaculateFee();



    }
}
